Cocoa Fundamentals Guide by Apple Inc

Cocoa Fundamentals Guide by Apple Inc

Author:Apple Inc.
Language: eng
Format: epub, pdf
Publisher: www.apple.com


Some of these same methods that might return nil include a final parameter for returning error information by reference.

This final parameter takes a pointer to an NSError object. Upon return from a method call that fails (that is, returns nil), you can inspect the returned error object to determine the cause of the error or you can display the error to the user in a dialog.

As an example, here’s a method from the NSDocument class:

- (id)initWithType:(NSString *)typeName error:(NSError **)outError;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.